package eirkdbd.lab1.membership.functions;

import eirkdbd.lab1.data.Team;
import eirkdbd.lab1.membership.MembershipFunction;
import eirkdbd.lab1.membership.functions.helpers.LinearMembershipFunction;

public class Asysty implements MembershipFunction{
	private final double maxX = 50;
	private final double minX = 30;
	private LinearMembershipFunction lmf;

	public Asysty(){
		lmf = new LinearMembershipFunction(minX, maxX);
	}
	@Override
	public double getValue(Team team) {
		return lmf.value(team.getAssist());
	}

}
